/*
 * Copyright (C) 2020 1km Group Holding Limited
 */

#ifndef __CAN_OPEN_H
#define __CAN_OPEN_H

#include <stdint.h>

#ifdef __cplusplus
extern "C" {
#endif
#include "canopen/canopen.h"
#include "canopen/io_board_api.h"

#define CANOPEN_MASTER_LOG_TAG  "CO_M"

typedef enum {
    co_master_core_reset_all,
    co_master_core_sdo,
} co_master_core_event_t;

typedef struct {
    co_master_core_event_t event;
    uint8_t                length;
} co_master_core_event_header_t;

int32_t xp_canopen_dev_manager_init();

#ifdef __cplusplus
}
#endif

#endif

//end of the file
